package ar.com.personalTravellers.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

import com.angel.architecture.persistence.base.PersistentObject;

@Entity
public class Country extends PersistentObject{

	private static final long serialVersionUID = 5751588763345398339L;

	@Column(nullable = false)
    @Enumerated(value = EnumType.STRING)
    private Continent continent;

    @Column(nullable = false)
    private String locale;

    @Column(nullable = false)
    private String name;

    @Column(length = 5)
    private String abbreviation;

    public Country() {
        super();
    }

    public Continent getContinent() {
        return continent;
    }

    public void setContinent(Continent continent) {
        this.continent = continent;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }
}